package com.dongjiantong.farmrecords.mapper;

import com.dongjiantong.farmrecords.model.FarmRecordsDisinfect;
import com.dongjiantong.mybatis.MyMapper;

import java.util.List;
import java.util.Map;

public interface FarmRecordsDisinfectMapper extends MyMapper<FarmRecordsDisinfect> {
    /**
     * 根据条件查询记录
     * @param map
     * @return
     */
    List<FarmRecordsDisinfect> selectByMap(Map map);

    /**
     * 新增一条记录
     * @param
     * @return
     */
    int createOne(FarmRecordsDisinfect farmRecordsDisinfect);

    String findMaxNumber(String prefix);

    /**
     * 养殖端按照单据状态分页查询列表
     * @param map
     * @return
     */
    List<FarmRecordsDisinfect> selectListByStatus(Map<String, Object> map);
}